import * as types from '../_types/market';
import { IReduxMarketInfo } from '../interface';

export function updateMarketData (marketData: IReduxMarketInfo) {
    return {
        type: types.UPDATE_MAKERT_DATA,
        payload: marketData
    }
}


export function updateAmountTo (amountTo) {
    return {
        type: types.UPDATE_AMOUNTTO,
        payload: amountTo
    }
}

export function updateOneMarketItem (data) {
    return {
        type: types.UPDATE_ONE_MARKET_ITEM,
        payload: data,
    }
}